package com.gitee.wsl.io.storage.strategy

import com.gitee.wsl.io.storage.strategy.KottageStrategy
import com.gitee.wsl.io.storage.strategy.KottageStrategyOperator
import com.gitee.wsl.io.storage.strategy.KottageTransaction

/**
 * No Eviction Strategy
 */
class KottageKvsStrategy : KottageStrategy {
    override suspend fun onItemRead(
        transaction: KottageTransaction,
        key: String,
        itemType: String,
        now: Long,
        operator: KottageStrategyOperator
    ) {
        // do nothing
    }

    override suspend fun onPostItemCreate(
        transaction: KottageTransaction,
        key: String,
        itemType: String,
        itemCount: Long,
        now: Long,
        operator: KottageStrategyOperator
    ) {
        // do nothing
    }
}
